/********************************************************************************/
/*ソース名:                                                                     */
/*    encode.h                                                                   */
/*機能:                                                                         */
/*     TODO:ファイルの機能を書く                                             */
/*作成者:                                                                       */
/*    2011/04/08 xiaoying（CBSﾃｸﾉ）                                                      */
/********************************************************************************/
/*変更履歴:                                                                     */
/*    2011/04/08 xiaoying（CBSﾃｸﾉ）   新規作成                                                       */
/********************************************************************************/

#ifndef ENCODE_H
#define ENCODE_H

#ifndef __DEF_ID_FOR_ALL
#include "Id.h"
#endif

#define __ANSIC__  0
#define __UTF8__   1
#define __UTF16__  2
#define __UTF7__   3
#define __UNICODE_BIG_ENDIAN__ 4


#define __JP_SHIFT_JIS__  10
#define __JP_EUC__      11
#define __JP_JIS__        12

#define __CHN_GB2312__    21
#define __CHN_BIG5__    22



#ifndef __ENCODING__
#if __LANGUAGE__ == _ENGLISH_
#define __ENCODING__  __ANSIC__
#elif __OS__ == _WINDOWS_XP && __LANGUAGE__ == _JAPANESE_
#define __ENCODING__  __JP_SHIFT_JIS__
#elif __OS__ == _WINDOWS_7 && __LANGUAGE__ == _JAPANESE_
#define __ENCODING__  __JP_SHIFT_JIS__
#elif __OS__ == _HP_UX_10 && __LANGUAGE__ == _JAPANESE_
#define __ENCODING__  __JP_SHIFT_JIS__
#elif __OS__ == _HP_UX_11 && __LANGUAGE__ == _JAPANESE_
#define __ENCODING__  __JP_SHIFT_JIS__
#elif __LANGUAGE__ == _CHINESE_SP_
#define __ENCODING__  __CHN_GB2312__
#elif  __LANGUAGE__ == _CHINESE_TR_
#define __ENCODING__  __CHN_BIG5__
#else
#define __ENCODING__  __ANSIC__
#endif
#endif

#if __ENCODING__ == __ANSIC__
#include "encode/taskchk_ansic.h"
#elif __ENCODING__ == __JP_EUC__
#include "encode/taskchk_jp_euc.h"
#elif __ENCODING__ == __JP_SHIFT_JIS__
#include "encode/taskchk_shift_jis.h"
#elif __ENCODING__ == __UTF8__
#include "encode/taskchk_utf8.h"
#elif __ENCODING__ == __UTF16__
#include "encode/taskchk_utf16.h"
#elif  __ENCODING__ == __UTF7__
#include "encode/taskchk_utf7.h"
#elif __ENCODING__ == __CHN_GB2312__
#include "encode/taskchk_gb2312.h"
#elif __ENCODING__ == __CHN_BIG5__
#include "encode/taskchk_big5.h"
#else
#include "encode/taskchk_ansic.h"
#endif

#endif /* ENCODE_H */
